package com.twu.biblioteca;

import java.util.ArrayList;
import java.util.List;

public class UserRepository {

    List<User> userList = new ArrayList<User>();

    public UserRepository(){
        userList.add(new User("Nikesh Vora", "nikeshvora1@gmail.com", "9538707175","123-9876","aE" ));
        userList.add(new User("Demo Account 2", "DemoAccount@gmail.com","9988776655","123-9877","PC"));
    }

}

// Use the following should an instance of having to search users comes about.

//    public User checkDetailsOfUsers(String userID, String password){
//        for(User user:userList){
//            if(userID.equals(user.username)&&user.password.equals(password)){
//                return user;
//            }
//        }
//
//        return null;
//    }
//}